package com.gao.web.dao;

import com.gao.web.pojo.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageMapper {
    Message selectById(int id);

    int insertMessage(Message message);

    List<Message> findContent(@Param("username") String username, @Param("content") String content);

    List<Message> messagefindAll();

    int update(Message message);

    int delete(Message message);

}
